package ca.camosun.bouncer.game;

public class Ball {
	private int x;
	private int y;

	public Ball(int inX, int inY) {
		x = inX;
		y = inY;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public boolean isInBounds(int xMin, int xMax, int yMin, int yMax) {
		if (x >= xMax) {
			return false;
		}
		if (x < xMin) {
			return false;
		}
		if (y >= yMax) {
			return false;
		}
		if (y < yMin) {
			return false;
		}
		return true;
	}

	public void bounce(int xDistance, int yDistance) {
		x += xDistance;
		y += yDistance;
	}

}
